package com.maiji.cloud.response.login;

import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.Status;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class TokenResDto extends BaseResDto {

    @ApiModelProperty(value="响应数据")
    private TokenResData data;

    public TokenResDto(Status status) {
        super(status);
    }

    public void setStatus (Status status) {
       super.setStatus(status);
    }

    public TokenResData newDataInstance () {
        return new TokenResData();
    }

    @NoArgsConstructor
    @Data
    @Accessors(chain=true)
    public class TokenResData {

        @ApiModelProperty(value="身份令牌")
        String maijiToken;

        @ApiModelProperty(value="绑定未注册手机号时返回随机生成密码")
        String pwd;

    }

}
